package com.chat.websocket.entity.vo;

/**
 * SunJingxuan
 * 2022 \ 08 \ 15
 */

public class ChatListVO extends FriendListVO {


	private String lastMessage;
	private String lastMessageTime;

	private Integer unreadMessageCount;

	public ChatListVO() {}

	public ChatListVO(Integer userId, String userNickname, String userHeadImg, Integer topStatus) {
		super(userId, userNickname, userHeadImg, topStatus);
	}

	public ChatListVO(String lastMessage, String lastMessageTime, Integer unreadMessageCount) {
		this.lastMessage = lastMessage;
		this.lastMessageTime = lastMessageTime;
		this.unreadMessageCount = unreadMessageCount;
	}

	public ChatListVO(Integer userId, String userNickname, String userHeadImg, Integer topStatus, String lastMessage, String lastMessageTime, Integer unreadMessageCount) {
		super(userId, userNickname, userHeadImg, topStatus);
		this.lastMessage = lastMessage;
		this.lastMessageTime = lastMessageTime;
		this.unreadMessageCount = unreadMessageCount;
	}

	public String getLastMessage() {
		return lastMessage;
	}

	public void setLastMessage(String lastMessage) {
		this.lastMessage = lastMessage;
	}

	public String getLastMessageTime() {
		return lastMessageTime;
	}

	public void setLastMessageTime(String lastMessageTime) {
		this.lastMessageTime = lastMessageTime;
	}

	public Integer getUnreadMessageCount() {
		return unreadMessageCount;
	}

	public void setUnreadMessageCount(Integer unreadMessageCount) {
		this.unreadMessageCount = unreadMessageCount;
	}


	@Override
	public String toString() {
		return "ChatListVO{" +
				"lastMessage='" + lastMessage + '\'' +
				", lastMessageTime='" + lastMessageTime + '\'' +
				", unreadMessageCount=" + unreadMessageCount +
				"} " + super.toString();
	}
}
